﻿using System;
using System.Collections.Generic;
using VolunteerManager.Model;

namespace VolunteerManager.Design
{
    public class DesignDataService : IDataService
    {
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to create design time data

            var item = new DataItem("Welcome to MVVM Light [design]");
            callback(item, null);
        }


        public List<Voluteer> VolutterList
        {
            get
            {
                List<Voluteer> list = new List<Voluteer>();
                list.Add(new Voluteer()
                {
                    ID = 1,
                    Name = "小明",
                    Photo = "C:\\nomal.jpeg",
                    QQ="2342432", Regions="吴江", Birth = new DateTime(1982,2,12), JoinDate = new DateTime(2010,3,4), 
                    Peoples=Man.满, Sex=Sex.女, 
                    Email="baidu@baidu.com", Wechat="aiaominghao" });
                list.Add(new Voluteer() { ID=1, Name="小红", Peoples=Man.回, Regions="江苏南京", Sex=Sex.男, Email="baidu@baidu.com", Wechat="xiaominghao" });
                return list;
            }
        }


        public Voluteer Vol
        {
            get
            {
                return VolutterList[0];
            }
        }
    }
}